package com.isoftstone.util;

import org.aspectj.lang.ProceedingJoinPoint;

public class Advice {
	public void before() {
		System.out.println("前置通知...");
	}

	public void after() {
		System.out.println("后置通知...");
	}

	public Object around(ProceedingJoinPoint pjp) throws Throwable {
		System.out.println("环绕通知...前...");
		Object obj = pjp.proceed();// 返回原方法的执行对象,原方法继续执行
		System.out.println("环绕通知...后...");
		return obj;
	}

	public void exception() {
		System.out.println("异常通知");
	}
}
